﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utilities;

namespace BussinessEntity
{
    public class ReceiptDetail
    {
        Receipt _receipt;
        Service _service;
        int _quantity;
        long _unitPrice;

        public Receipt Receipt
        {
            get
            {
                return _receipt;
            }
            set
            {
                _receipt = value;
            }
        }
        public Service Service
        {
            get
            {
                return _service;
            }
            set
            {
                _service = value;
            }
        }
        
        public string ServiceName
        {
            get
            {
                return Service.ServiceName;
            }
        }

        public string UnitPriceVND
        {
            get
            {
                return DataUtil.ChangeMoneyToString(_unitPrice);
            }
        }

        public long UnitPrice
        {
            get
            {
                return _unitPrice;
            }
            set
            {
                _unitPrice = value;
            }
        }

        public int Quantity
        {
            get
            {
                return _quantity;
            }
            set
            {
                _quantity = value;
            }
        }

        public string ServiceID
        {
            get
            {
                return Service.ServiceID;
            }
        }

        public string ReceiptID
        {
            get
            {
                return Receipt.ReceiptID;
            }
        }

    }
}
